<template>
    <input type="text" :value="todoTitle" @input="inputHandler" v-bind="$attrs" />
</template>

<script>
export default {
    props: {
        todoTitle: {
            type: String,
            default: ''
        },
    },
    methods: {
        inputHandler(e) {
            this.$emit('update:todoTitle', e.target.value)
        }
    },
}
</script>

<style lang="scss" scoped>
</style>